package com.ecube.mqtt.page.listener.chargelistener;

import com.ecube.mqtt.page.BusinessPage;

import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class BackListener implements ActionListener {

    private JFrame current;

    private String path;
    public BackListener(JFrame start, String path) {
        this.current = start;
        this.path =path;
//        this.vehicletext = vehicletext;
//        this.vintext = vintext;
    }

    public void actionPerformed(ActionEvent e) {

        //关闭当前页面
        current.dispose();
        BusinessPage.initUI();

    }
}